package control;

import java.io.Serializable;
import java.util.Observable;

/**
 * Part of the observer pattern
 * 
 * @author Thomas
 *
 */

public class ObservableObject extends Observable implements Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String NotificationMessage;
	
	public ObservableObject(String message) {
		super();
		
		this.NotificationMessage = message;
	}

	public synchronized void setChanged() {
	    super.setChanged();
	}
	
	public String getMessage()
	{
		return NotificationMessage;
	}
	
}
